Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(AsideHeader): asideHeader rewrited to hooks #102

Merged
merged 5 commits into from
Sep 20, 2023

Conversation

catakot
Copy link
Contributor

@catakot catakot commented Sep 13, 2023

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.


interface AsideHeaderContextType {
compact: boolean;
export interface AsideHeaderContextType extends AsideHeaderInnerProps {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This context is not intended to drag all the props into it, since it is exported outside. Let's try to explicitly pass props whenever possible, or create a separate context for internal use

@catakot catakot force-pushed the refactor/AsideHeader branch from 4560c61 to 23c7b19 Compare September 19, 2023 13:30
menuItems: MenuItem[];
headerDecoration: boolean;
}
import {FirstPanel} from './components';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move the imports above the style imports

@Lunory
Copy link
Collaborator

Lunory commented Sep 19, 2023

Action Item in compact mode is broken

Screenshot 2023-09-19 at 16 57 22

@catakot catakot merged commit 7b06b60 into main Sep 20, 2023
3 checks passed
@catakot catakot deleted the refactor/AsideHeader branch September 20, 2023 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants